Main Page | Data Structures | File List | Data Fields | Globals

BustaModelCustomer Class Reference

Customer model. More...

#include <BustaModelCustomer.h>


Public Member Functions

 BustaModelCustomer ()
 Constructor.
 ~BustaModelCustomer ()
 Destructor.
int getTime ()
 Time left on order.
void addTime (int t)
 Adds time to order.
void setTimeLeft (int timeLeft)
 Sets the amount of time left to complete the customer's order.
int getAllottedTime ()
 Returns the amount of time that was allotted to fulfilling the order.
void setAllottedTime (int newTime)
 Sets the total amount of time set to fulfill the order.
BustaModelFoodPiece ** getOrder ()
 Current order.
BustaModelFoodPiecegetOrder (int n)
 Foodpiece in order.
void setOrder (BustaModelFoodPiece **o)
 Sets the current Customer order.


Detailed Description

Customer model.

Model representing the customer. Has time left on order as well as sandwich requested


Constructor & Destructor Documentation

BustaModelCustomer::BustaModelCustomer  ) 
 

Constructor.

Initializes variables

BustaModelCustomer::~BustaModelCustomer  ) 
 

Destructor.


Member Function Documentation

void BustaModelCustomer::addTime int  t  ) 
 

Adds time to order.

Adds specified amount of time to time left on the order

int BustaModelCustomer::getAllottedTime  ) 
 

Returns the amount of time that was allotted to fulfilling the order.

Returns the amount of time that the customer allowed to have their order fulfilled. This number is a raw count of seconds.

Returns:
The number of seconds to fulfill the customer's order

BustaModelFoodPiece * BustaModelCustomer::getOrder int  n  ) 
 

Foodpiece in order.

Returns pointer to nth food piece in order

BustaModelFoodPiece ** BustaModelCustomer::getOrder  ) 
 

Current order.

Returns pointer to the current Customer order

int BustaModelCustomer::getTime  ) 
 

Time left on order.

Gets the time left on the customer order

void BustaModelCustomer::setAllottedTime int  newTime  ) 
 

Sets the total amount of time set to fulfill the order.

Sets the total amount of time set to fulfill the order

Parameters:
newTime The total amount of time to give to the order

void BustaModelCustomer::setOrder BustaModelFoodPiece **  o  ) 
 

Sets the current Customer order.

Currently a stub function

void BustaModelCustomer::setTimeLeft int  timeLeft  ) 
 

Sets the amount of time left to complete the customer's order.

Sets the amount of time left to complete the customer's order

Parameters:
timeLeft The amount of time to allow before the customer's order is considered unfulfilled


Generated on Sun Aug 14 22:24:56 2005 for BustaSandwich Models by  doxygen 1.4.2-20050421